package com.cardgame.model.role;

import lombok.Getter;
import lombok.Setter;

import java.util.Map;

@Setter
@Getter
public class Skill implements ISkill {
    private String skillName;
    private String introduction;
    private int addSelfHp;
    private int addSelfMp;
    private int addSelfMpMax;
    private int addEnemyHp;
    private int addEnemyMp;
    private int cost;

    public Skill(String skillName, String introduction, int addSelfHp, int addSelfMp, int addSelfMpMax,
            int addEnemyHp, int addEnemyMp, int cost) {
        this.skillName = skillName;
        this.introduction = introduction;
        this.addSelfHp = addSelfHp;
        this.addSelfMp = addSelfMp;
        this.addSelfMpMax = addSelfMpMax;
        this.addEnemyHp = addEnemyHp;
        this.addEnemyMp = addEnemyMp;
        this.cost = cost;
    }

    public Skill() {
    }

    public Map<String, Object> toMap() {
        return Map.of(
                "skillName", skillName,
                "introduction", introduction,
                "addSelfHp", addSelfHp,
                "addSelfMp", addSelfMp,
                "addSelfMpMax", addSelfMpMax,
                "addEnemyHp", addEnemyHp,
                "addEnemyMp", addEnemyMp,
                "cost", cost
        );
    }
}